﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERP.WH.Models.Entity;

[Table("wh_material")]
public partial class WhMaterial
{
    [Key]
    public long MaterialId { get; set; }

    public string MaterialCode { get; set; } = null!;

    public string MaterialName { get; set; } = null!;

    public string? Specification { get; set; }

    /// <summary>
    /// 计量单位
    /// </summary>
    public string Unit { get; set; } = null!;

    public int? MaterialTypeId { get; set; }

    public int? CategoryId { get; set; }

    public string? Barcode { get; set; }

    public string? QrCode { get; set; }

    /// <summary>
    /// 保质期(天)
    /// </summary>
    public int? ShelfLife { get; set; }

    /// <summary>
    /// 是否批次管理
    /// </summary>
    public sbyte? IsBatch { get; set; }

    /// <summary>
    /// 是否序列号管理
    /// </summary>
    public sbyte? IsSerial { get; set; }

    /// <summary>
    /// 是否敏感物料
    /// </summary>
    public sbyte? IsSensitive { get; set; }

    public decimal? MinStock { get; set; }

    public decimal? MaxStock { get; set; }

    public decimal? SafeStock { get; set; }

    /// <summary>
    /// 单件重量(kg)
    /// </summary>
    public decimal? Weight { get; set; }

    /// <summary>
    /// 单件体积(m³)
    /// </summary>
    public decimal? Volume { get; set; }

    public sbyte? Status { get; set; }

    public DateTime? CreatedAt { get; set; }

    public DateTime? UpdatedAt { get; set; }

    public sbyte? IsDelete { get; set; }
}
